//
//  BattleManager.h
//  xyz
//
//  Created by jorsun on 14-3-14.
//
//

#ifndef __xyz__BattleManager__
#define __xyz__BattleManager__

#include <iostream>
#include "BattleObject.h"
#include "BattleScene.h"
class BattleManager{
public:
    virtual ~BattleManager(void);
	static BattleManager* getInstance();
	virtual void addPlayer(BattleObject *battleObject);
    virtual void  frame(float f);
     virtual   void move(MoveMessage* moveMessage);
	virtual void enterBattle();
	virtual void addPlayer(BattleAddPlayerMessage* msg);
private :
    std::map<std::string,BattleObject*> battleObjs;
	BattleScene* scene;
	BattleManager();
};
#endif /* defined(__xyz__BattleManager__) */
